package gradle.common.feign.config.feign;

import feign.RequestInterceptor;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自动配置类注册
 * <p>
 * AutoConfiguration.imports 配合使用
 */
@AutoConfiguration
public class FeignTokenRelayAutoConfiguration {

    @Bean
    public RequestInterceptor FeignTokenRelayInterceptor() {
        return new FeignTokenRelayInterceptor();
    }
}